<?php
namespace app\index\command;

use think\console\Command;
use think\console\Input;
use think\console\Output;

class Test extends Command
{
    protected function configure()
    {
        $this->setName('test')->setDescription('Here is the remark ');
    }

    protected function execute(Input $input, Output $output)
    {
    	$model = new \app\common\model\Member;
    	$data = $model->select();
    	$result = '';
    	if($data){
    		foreach($data as &$value):
    			$value = $value->toArray();
    			$result .= $value['mid'].',';
    		endforeach;
    	}
        $output->writeln("TestCommand:".$result);
    }
}